package ebusiness.ebusiness.Dao.WalletDao;

import ebusiness.ebusiness.Entity.wallet;
import ebusiness.ebusiness.Entity.walletflow;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface WalletQuery {
    wallet getWalletByID(@Param("id") int id);
    void PayOrder2(@Param("orderid")int  oid, @Param("status")String status, @Param("paytime")String paytime);
    void PayOrder(@Param("walletid") int walletID,@Param("password") int password,@Param("remain") double remain,@Param("time") String time);

    void Wateflow(@Param("flowid")int id,@Param("oid")int oid,@Param("uid")int uid,@Param("before")double before,@Param("type")int type,
                  @Param("trade")double trade,@Param("now")double now,@Param("time")String date);
    List<walletflow> getwalletflowByUId(@Param("uid") int uid);
    List<wallet> getUserwalletByUId(@Param("uid") int uid);
    void addWallet(@Param("wid")int wid,@Param("uid")int uid,@Param("pw")String pw,@Param("time")String date,@Param("remain")double remain);
    void updateWallet(@Param("wid")int wid,@Param("uid")int uid,@Param("pw")String pw,@Param("time")String date,@Param("remain")double remain);
}
